//
//  GGTOtherTeamBuyTableViewCell.m
//  GGT
//
//  Created by 空空空 on 14/11/1.
//  Copyright (c) 2014年 GGT. All rights reserved.
//

#import "GGTOtherTeamBuyTableViewCell.h"
#import "GGTDeleteLabel.h"
@implementation GGTOtherTeamBuyTableViewCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        self.currentPriceLabel = [[UILabel alloc]init];
        [self.contentView addSubview:self.currentPriceLabel];
        //self.descriptLabel.backgroundColor = [UIColor grayColor];
        self.listPriceLabel= [[GGTDeleteLabel alloc]init];
        [self.contentView addSubview:self.listPriceLabel];
        self.nameLabel = [[UILabel alloc]init];
        [self.contentView addSubview:self.nameLabel];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.listPriceLabel.frame = CGRectMake(10, 10, self.contentView.frame.size.width / 7, self.contentView.frame.size.height);
    //self.listPriceLabel.backgroundColor = [UIColor lightGrayColor];
    self.listPriceLabel.text = [NSString stringWithFormat:@"%@", self.detailModel.list_price];
    self.currentPriceLabel.frame = CGRectMake(10 + self.contentView.frame.size.width / 7, 10 , self.contentView.frame.size.width / 7 * 2, self.contentView.frame.size.height);
    //self.currentPriceLabel.backgroundColor = [UIColor greenColor];
    self.currentPriceLabel.text = [NSString stringWithFormat:@"%@", self.detailModel.current_price];
    self.nameLabel.frame = CGRectMake(10 + self.contentView.frame.size.width / 7 * 2, 10, self.contentView.frame.size.width / 7 * 5, self.contentView.frame.size.height);
    self.nameLabel.text = self.detailModel.title;
    
    //self.nameLabel.backgroundColor = [UIColor orangeColor];
    
}
- (void)awakeFromNib {
    // Initialization code
}
- (void)dealloc
{
    [_nameLabel release];
    [_currentPriceLabel release];
    [_listPriceLabel release];
    [super dealloc];
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
